lcBlockAddRPolygon Home

Adds a new Polyline object into a block. This polyline represents regular polygon.

 HANDLE lcBlockAddRPolygon (
   HANDLE hBlock,
   int nVers,
   double Xcen,
   double Ycen,
   double Radius,
   double StartAngle,
   BOOL bInscribed,
   BOOL bFilled
 );

Parameters
hBlock
  Handle to a block.
nVers
  Number of polygon vertices.
Xcen Ycen
  Coordinates of polygon center point.
StartAngle
  Start angle.
bInscribed
  If TRUE then polygon is inscribed to circle of specified radius,
If FALSE then polygon is circumscribed about circle
bFilled
  If TRUE then inner area of polygon will be filled with color.

Return Value

  Handle to created Polyline object or NULL if the function fails.

See Also

  Code sample,   lcBlockAddPolyline